package org.sgx.gwteditors.testgallery.gallery;

import java.util.Map;

import org.sgx.gwteditors.client.impl1.simple.IntegerEditorEntry2;
import org.sgx.gwteditors.client.util.TestUtil;

import com.google.gwt.resources.client.ExternalTextResource;
import com.google.gwt.user.client.ui.Panel;

public class IntegerEditor2Test implements Test {

	@Override
	public void test(Panel parent) {
		IntegerEditorEntry2 ed2 = new IntegerEditorEntry2(); 
		ed2.load(1);
		parent.add(ed2);
	}
	
	//test stuff
	@Override
	public String getName() {
		return "integereditor2";
	}

	@Override
	public String[] getTags() {		
		return null;
	}

	@Override
	public String getDescription() {
		return "show how to use integer editor 2";
	}

//	@Override
//	public String[] getJavaSources() {
//		return new String[]{TestResources.INSTANCE.IntegerEditor2Test().getText()};
//	}
	@Override
	public Map<String, ExternalTextResource> getJavaSources() {
		return TestUtil.getResource(getName(), TestResources.INSTANCE.IntegerEditor2Test());
	}
}
